package com.jrx.anytxn.transaction.handler;

import com.jrx.anytxn.common.exception.TxnException;
import com.jrx.anytxn.transaction.dto.manuallyTransaction.AdjustAmountReq;
import com.jrx.anytxn.transaction.dto.manuallyTransaction.LoanOrderRes;

import java.util.List;

/**
 * 手工交易handler
 *
 * @author : zhenghaopu
 * 2020/1/16
 */
public interface IManuallyTransactionHandler {
    /**
     * 订单列表查询
     *
     * @param tenantId
     * @param queryParam
     * @return
     * @throws TxnException
     */
    List<LoanOrderRes> getOrderList(String tenantId, String queryTpe, String queryParam) throws TxnException;

    /**
     * 手工交易账户调整
     *
     * @param adjustAmountReq 账户调整请求实体
     */
    void adjustAmount(AdjustAmountReq adjustAmountReq, String tenantId, String userId) throws TxnException;
}
